package com.aliyun.messagemgt.dto.msg;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
@ApiModel("消息记录DTO")
public class MessageRecordDTO {
    @ApiModelProperty("消息任务id")
    private Long msgId;
    private String pushChannelId;
    @ApiModelProperty("接收渠道编码")
    private String pushChannelCode;
    @ApiModelProperty("接收渠道类型")
    private String pushChannelType;
    @ApiModelProperty("接收渠道类型名称")
    private String pushChannelTypeName;
    @ApiModelProperty("接收渠道名称")
    private String pushChannelName;
    @ApiModelProperty("模板编码")
    private String templateCode;
    @ApiModelProperty("模板名称")
    private String templateName;
    @ApiModelProperty("消息源编码")
    private String msgSourceCode;
    @ApiModelProperty("消息源名称")
    private String msgSourceName;
    @ApiModelProperty("场景编码")
    private String sceneCode;
    @ApiModelProperty("场景名称")
    private String sceneName;
    @ApiModelProperty("发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty("状态")
    private String status;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("接收人列表")
    private List<ReceiverDTO> receiverDTOList;
    @ApiModelProperty(value = "租户编码")
    private String tenantCode;
    @ApiModelProperty(value = "租户名称")
    private String tenantName;

}